export const routes = [
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/Login/login.vue"),
    meta: {
      title: "登录",
      hidden:true,
      icon:''
    },
  },
  {
    path: "/",
    name: "Layout",
    component: () => import("@/layout/index.vue"),
    meta: {
      title: "",
      hidden:false,
      icon:''
    },
    redirect: "/home",
    children: [
      {
        path: "/home",
        component: () => import("@/views/home/index.vue"),
        meta: {
          title: "首页",
          hidden:false,
          icon:'el-icon-s-home'
        },
      },
    ],
  },
  {
    path: "/404",
    name: "404",
    component: () => import("@/views/404/404.vue"),
    meta: {
      title: "404",
      hidden:true,
      icon:''
    },
  },
  {
    path: "/acl",
    name: "Acl",
    component: () => import("@/layout/index.vue"),
    meta: {
      title: "权限管理",
      hidden:false,
      icon:'el-icon-lock'
    },
    redirect: "/acl/user",
    children: [
      {
        path: "/acl/user",
        name: "User",
        component: () => import("@/views/acl/user"),
        meta:{
          title:'用户管理',
          hidden:false,
          icon:'el-icon-user'
        }
      },
      {
        path: "/acl/role",
        name: "Role",
        component: () => import("@/views/acl/role"),
        meta:{
          title:'角色管理',
          hidden:false,
          icon:'el-icon-user-solid'
        }
      },
      {
        path: "/acl/permission",
        name: "Permission",
        component: () => import("@/views/acl/permission"),
        meta:{
          title:'菜单管理',
          hidden:false,
          icon:'el-icon-monitor'
        }
      },
    ],
  },
  {
    path:'/screen',
    name:'Screen',
    component:()=>import("@/views/screen/index.vue"),
    meta:{
      title:'数据大屏',
      hidden:false,
      icon:'el-icon-files'
    }
  }
];